package cn.yyh.pet.service;

import cn.yyh.basic.service.IBaseService;
import cn.yyh.basic.utils.PageInfo;
import cn.yyh.pet.domain.Pet;
import cn.yyh.pet.query.PetQuery;

import java.util.List;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: IPetService
 * @Package: cn.yyh.pet.service
 * @date 2021/7/6
 */
public interface IPetService extends IBaseService<Pet> {
    @Override
    void save(Pet pet);

    PageInfo<Pet> pageQuery(PetQuery query, Long id);

    void onSale(List<Long> ids);

    void offSale(List<Long> ids);
    Pet loadById(Long id);

    Pet getPetDetailsById(Long id);

    void adopt(Long id, Long id1);
}
